﻿@model qkview.Models.Board


@using (Html.BeginForm("Create", "Board", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { id = "registerForm" }))
{
    @Html.AntiForgeryToken()
   

    <fieldset>
        <legend>Board</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field ">
            @Html.TextBoxFor(x => x.Title, new { @class = "ui-widget-content ui-corner-all" }) 
           @* @Html.ValidationMessageFor(model => model.Title)*@
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Description ,new  {@rows = "5", @cols="50", @class = "ui-widget-content ui-corner-all" })
           @* @Html.ValidationMessageFor(model => model.Description)*@
        </div>
   
        <div class="editor-label">
            @Html.LabelFor(model => model.CategoryID )
        </div>
        <div class="editor-field">
            @Html.DropDownList("CategoryID", (IEnumerable<SelectListItem>)ViewBag.Categories, "--Select--", new { @class = "ui-widget-content ui-corner-all" })
          @*  @Html.ValidationMessageFor(model => model.CategoryID)*@
        </div>       
        <p>
            <input type="submit" value="Create Board" class="linkButton" />
             @Html.ValidationSummary()
        </p>
    </fieldset>
}

